package unidad4;

public class MyMenu {


	public static void main(String[] args)throws Exception {

		System.out.println("Menu of Greetings"+"\n"+"M - Good Morning"+"\n"+
				"A - Good Afternoon"+"\n"+
				"E - Good Evening"+"\n"+
				"N - Good Night"+"\n"+
				"Q - Quit"+"\n"+"\n"+"Type one of the Characters M,A,E,N to display a greeting or press Q to Quit ");

		char aLet = (char)System.in.read();
		
		while(aLet != 'Q' ){

			switch(aLet){

			case 'M': {

				System.out.println("Good Morning");
				break;
			}
			case 'A': {

				System.out.println("Good Afternoon");
				break;
			}case 'E': {

				System.out.println("Good Evening");
				break;
			}case 'N': {

				System.out.println("Good Night");
				break;
			}
			}

			System.out.println("Select an Option Again");
			aLet = (char)System.in.read();
			//System.in.read();
			
		}

		System.out.println("Thank You!");
		
	}

}
